package com.lt.experiment04.mission03;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment04.mission03
 * @ClassName Test
 * @Description to do
 * @date 2021/11/2 11:18
 */
public class Test {
    public static void main(String[] args) {
        Bread b = new RiBread();
        System.out.println(b.cost());
        System.out.println(b.getDescription());
        System.out.println("\n加奶油");
        b = new Naiyou(b);
        System.out.println(b.cost());
        System.out.println(b.getDescription());
        System.out.println("\n加糖");
        b = new Tang(b);
        System.out.println(b.cost());
        System.out.println(b.getDescription());
        System.out.println("\n加盐");
        b = new Yan(b);
        System.out.println(b.cost());
        System.out.println(b.getDescription());
        System.out.println("\n加海苔");
        b = new Haitai(b);
        System.out.println(b.cost());
        System.out.println(b.getDescription());
        System.out.println("\n加火腿");
        b = new Huotui(b);
        System.out.println(b.cost());
        System.out.println(b.getDescription());
        System.out.println("\n加番茄");
        b = new Fanqie(b);
        System.out.println(b.cost());
        System.out.println(b.getDescription());
    }
}
